<%@page import="net.groupme.gui.constants.VIEW_VOCABULARY"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<div id="groupme_header_innerdiv">
<div id="usermenu">
		<c:if test="${userManager.loggedIn}">
		<span>
			Howdy <c:out value="${userManager.user.userName}"/>!
			| <a  href="<%=  VIEW_VOCABULARY.RESTful_MyGroupMe %>" title="My GroupMe! Home">myGroupMe!</a>
			| <a style="vertical-align:top;" href="<%= request.getContextPath() + "/" + VIEW_VOCABULARY.ACTION_LOGOUT %>" title="logout and go to welcome page">logout</a>
		</span>
		</c:if>
		<c:if test="${!userManager.loggedIn}">
			<form name="login" action="<%= VIEW_VOCABULARY.GROUPME_BASE_URL + VIEW_VOCABULARY.ACTION_HEADER_LOGIN %>" method="post">
				<div>
				username: 
				<input style="font-size:0.9em" size="20" type="text" name="<%= VIEW_VOCABULARY.PARAMETER_USERNAME %>" value="<c:out value='${username}'/>"/>
				password: <input style="font-size:0.9em" type="password" name="<%= VIEW_VOCABULARY.PARAMETER_PASSWORD %>"/>
				<input type="hidden" name="<%= VIEW_VOCABULARY.PARAMETER_REDIRECT %>" value="${redirect}"/>
				<input style="font-size:0.9em" type="submit" value="login"/>
				<input style="font-size:0.9em" size="20" type="checkbox" name="<%= VIEW_VOCABULARY.PARAMETER_KEEP_PERMANENT_LOGGED_IN %>"/>
				<i>remember me</i>
				</div>
				
				<div style="font-size:10pt; margin-top:2px;">
				<b><a href="<%= VIEW_VOCABULARY.RESTful_REGISTER %>" title="Create GroupMe! account">Create a new GroupMe! account</a></b>
				</div>
			</form>
		</c:if>
</div>
<a href="<%= request.getContextPath()%>/" title="GroupMe!">	
<img src="<%= request.getContextPath() %>/images/groupme-logo.png" style="text-decoration:none;border:none;" alt="GroupMe!"/>
<!--   groupme_icon_v2.png social-semweb-logo.png groupme-logo-header-cebit.png-->  
</a>
</div>

